using System;
using System.Collections.Generic;

namespace Charisma.Tests.Models.Northwind
{
  public class Order
  {
    public int Id { get; private set; }
    
    public int ShipperId { get; set; }
    public Shipper ShipVia { get; set; }
    
    public int EmployeeId { get; set; }
    public Employee Employee { get; set; }

    public string CustomerId { get; set; }
    public Customer Customer { get; set; }

    public DateTime? OrderDate { get; set; }
    public DateTime? RequiredDate { get; set; }
    public DateTime? ShippedDate { get; set; }
    public TimeSpan? ProcessingTime { set; get; }
    public decimal? Freight { get; set; }
    public string ShipName { get; set; }
    public Address ShippingAddress { get; set; }
    public IList<OrderDetails> OrderDetails { get; private set; }

    public override string ToString()
    {
      return string.Format("OrderId: {0}; OrderDate: {1}; RequiredDate: {2}.", Id, OrderDate, RequiredDate);
    }
  }
}